﻿# NOTE Lines must not exceed 132 characters
# Robot module configurations : general handling of movement G-codes and slicing into moves
arm_solution     cartesian
default_feed_rate                            10000             # Default rate ( mm/minute ) for G1/G2/G3 moves
default_seek_rate                            10000             # Default rate ( mm/minute ) for G0 moves
mm_per_arc_segment                           0.5              # Arcs are cut into segments ( lines ), this is the length for
                                                              # these segments.  Smaller values mean more resolution,
                                                              # higher values mean faster computation
#mm_per_line_segment                          5                # Lines can be cut into segments ( not usefull with cartesian
                                                              # coordinates robots ).

# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions
alpha_steps_per_mm                           79.8               # Steps per mm for alpha stepper
beta_steps_per_mm                            79.8               # Steps per mm for beta stepper
gamma_steps_per_mm                           2267.72             # Steps per mm for gamma stepper

# Planner module configuration : Look-ahead and acceleration configuration
planner_queue_size                           32               # DO NOT CHANGE THIS UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING
acceleration                                 5000            # Acceleration in mm/second/second. was 200
z_acceleration                               45              # Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
acceleration_ticks_per_second                1000             # Number of times per second the speed is updated
junction_deviation                           0.05             # Similar to the old "max_jerk", in millimeters,
                                                              # see https://github.com/grbl/grbl/blob/master/planner.c
                                                              # and https://github.com/grbl/grbl/wiki/Configuring-Grbl-v0.8
                                                              # Lower values mean being more careful, higher values means being
                                                              # faster and have more jerk
#z_junction_deviation                        0.0              # for Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA
#minimum_planner_speed                       0.0              # sets the minimum planner speed in mm/sec

# Stepper module configuration
microseconds_per_step_pulse                  1                # Duration of step pulses to stepper drivers, in microseconds
base_stepping_frequency                      100000           # Base frequency for stepping

# Cartesian axis speed limits
x_axis_max_speed                             120000            # mm/min
y_axis_max_speed                             120000            # mm/min
z_axis_max_speed                             100              # mm/min

# Stepper module pins ( ports, and pin numbers, appending "!" to the number will invert a pin )
alpha_step_pin                               2.0              # Pin for alpha stepper step signal
alpha_dir_pin                                0.5              # Pin for alpha stepper direction
alpha_en_pin                                 0.4              # Pin for alpha enable pin
alpha_current                                1.8              # X stepper motor current
alpha_max_rate                               120000.0          # mm/min

beta_step_pin                                2.1              # Pin for beta stepper step signal
beta_dir_pin                                 0.11             # Pin for beta stepper direction
beta_en_pin                                  0.10             # Pin for beta enable
beta_current                                 1.8             # Y stepper motor current
beta_max_rate                                120000.0          # mm/min

gamma_step_pin                               2.2              # Pin for gamma stepper step signal
gamma_dir_pin                                0.20             # Pin for gamma stepper direction
gamma_en_pin                                 0.19             # Pin for gamma enable
gamma_current                                1.8              # Z stepper motor current
gamma_max_rate                               300.0            # mm/min

# Serial communications configuration ( baud rate default to 9600 if undefined )
uart0.baud_rate                              115200           # Baud rate for the default hardware serial port
serial.baud_rate                              115200           # Baud rate for the default hardware serial port
second_usb_serial_enable                     false            # This enables a second usb serial port (to have both pronterface
                                                              # and a terminal connected)


epsilon_current                              1.2              # Second extruder stepper motor current




# Endstops
endstops_enable                             true             # the endstop module is enabled by default and can be disabled here
corexy_homing                               false            # set to true if homing on a hbot or corexy
alpha_min_endstop                            1.24^            # add a ! to invert if endstop is NO connected to ground
alpha_max_endstop                            1.25^            # NOTE set to nc if this is not installed
alpha_max_travel		             600
alpha_homing_direction                       home_to_min      # or set to home_to_max and set alpha_max
alpha_min                                    -10                # this gets loaded after homing when home_to_min is set
alpha_max                                    200              # this gets loaded after homing when home_to_max is set
beta_min_endstop                             1.26^            #
beta_max_endstop                             1.27^            #
beta_homing_direction                        home_to_min      #
beta_min                                     -19                #
beta_max                                     200              #
beta_max_travel		                     920
gamma_min_endstop                            nc # 1.28^           
gamma_max_endstop                            1.29^            #
gamma_homing_direction                       home_to_max      #
gamma_min                                    0                #
gamma_max                                    200              #

# optional order in which axis will home, default is they all home at the same time,
# if this is set it will force each axis to home one at a time in the specified order
homing_order                                 ZXY              # x axis followed by y then z last
move_to_origin_after_home                    true            # move XY to 0,0 after homing

# optional enable limit switches, actions will stop if any enabled limit switch is triggered
alpha_limit_enable                          true           # set to true to enable X min and max limit switches
beta_limit_enable                           true           # set to true to enable Y min and max limit switches
gamma_limit_enable                          true           # set to true to enable Z min and max limit switches

alpha_fast_homing_rate_mm_s                  25               # feedrates in mm/second (was 50)
beta_fast_homing_rate_mm_s                   25               # " (was 50)
gamma_fast_homing_rate_mm_s                  5                # "
alpha_slow_homing_rate_mm_s                  1               # "(was 25)
beta_slow_homing_rate_mm_s                   1               # "(was 25)
gamma_slow_homing_rate_mm_s                  1                # "

alpha_homing_retract_mm                      10                # distance in mm (was 5)
beta_homing_retract_mm                       10                # "
gamma_homing_retract_mm                      8                # "

#endstop_debounce_count                       100              # uncomment if you get noise on your endstops, default is 100

currentcontrol_module_enable		true


# associated with zprobe the leveling strategy to use


leveling-strategy.rectangular-grid.enable               true     # The strategy must be enabled in the config, as well as the zprobe module.
leveling-strategy.rectangular-grid.x_size              540       # size of bed in the X axis
leveling-strategy.rectangular-grid.y_size               882       # size of bed in the Y axis
leveling-strategy.rectangular-grid.size                 15 	 # The size of the grid, for example, 7 causes a 7x7 grid with 49 points.Must be an odd number.
leveling-strategy.rectangular-grid.do_home        false #
leveling-strategy.rectangular-grid.probe_offsets        0,0,0    # Optional probe offsets from the nozzle or tool head
leveling-strategy.rectangular-grid.save                 true    # If the saved grid is to be loaded on boot then this must be set to true
leveling-strategy.rectangular-grid.initial_height       10       # Optionally an initial_height can be set that tell the intial probe 
                                                           # where to stop the fast decent before it probes, this should be 
                                                           # around 5-10mm above the bed
mm_per_line_segment 1 # necessary for cartesians using rectangular-grid



# optional Z probe
gamma_min_endstop            nc                 # normally 1.28. Change to nc to prevent conflict, not needed on Azteeg X5
zprobe.enable                                true           # set to true to enable a zprobe
zprobe.probe_pin                             1.28^          # pin probe is attached to if NC remove the !
zprobe.slow_feedrate                         1               # mm/sec probe feed rate
zprobe.debounce_ms                           1 #             set if noisy
zprobe.fast_feedrate                         4             # move feedrate mm/sec
zprobe.probe_height                          8               # how much above bed to start probe
zprobe.return_feedrate	                     1              # added 10/25


# Only needed on a smoothieboard
# currentcontrol_module_enable                 true             #

return_error_on_unhandled_gcode              false            #

# network settings
network.enable                               true            # enable the ethernet network services
network.webserver.enable                     true             # enable the webserver
network.telnet.enable                        true             # enable the telnet server  
network.plan9.enable                         true          
# network.ip_address                           auto              use dhcp to get ip address
network.ip_address                           192.168.3.54    # the IP address
network.ip_mask                              255.255.0.0    # the ip mask
network.ip_gateway                           0.0.0.0      # the gateway address